<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue.js"></script>
    <script src="js/axios.js"></script>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.zhimg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://unpkg.zhimg.com/element-ui/lib/index.js"></script>
</head>
<body>
<div id="app">
    <el-row>
        <el-col :lg="24">
            <label>题型</label>
            <template>
                <el-tabs v-model="activeName" @tab-click="handleClick">
                    <el-tab-pane label="选择题" name="first">
                        <sc></sc>
                    </el-tab-pane>
                    <el-tab-pane label="多选题" name="second">
                        <mc></mc>
                    </el-tab-pane>
                    <el-tab-pane label="判断题" name="third">
                        <tof></tof>
                    </el-tab-pane>
                    <el-tab-pane label="填空题" name="fourth">
                        <bf></bf>
                    </el-tab-pane>
                    <el-tab-pane label="问答题" name="fifth">
                        <sa></sa>
                    </el-tab-pane>
                </el-tabs>
            </template>
        </el-col>
    </el-row>
</div>
<script src="add.js"></script>
<script>
    var storage = window.localStorage;
    var token = storage.getItem("token");
    var refreshToken = storage.getItem("refreshToken");

    //1，创建组件构造器
    Vue.component('sc',addSC)
    Vue.component('mc',addMC)
    Vue.component('tof',addTOF)
    Vue.component('bf',addBF)
    Vue.component('sa',addSA)

    new Vue({
        el:"#app",
        data: {
            activeName: 'first'
        },
        methods:{
            handleClick(tab, event) {
                console.log(tab, event);
            }
        }
    })


</script>
</body>
</html>